# -*- coding: utf-8 -*-
__author__ = 'orangleliu'

import os
import web
from web.contrib.template import render_jinja

# ------------------debug----------------------
debug = 'SERVER_SOFTWARE' not in os.environ
web.config.debug = debug

# ------------------jinja2----------------------
app_root = os.path.dirname(__file__)
templates_path = os.path.join(app_root, 'templates').replace('\\', '/')
render = render_jinja(
    templates_path,
    encoding='utf-8'
)